
@extends('admin.layout.layout')


@section('content')   
<div class="row">
<div class="col-lg-12">
    <h1 class="page-header">用户添加</h1>
</div>
<!-- /.col-lg-12 -->
</div>


<!--                 用户添加列表                                   -->
<div class="row">
<div class="col-lg-12">
    <div class="panel panel-default">
        <div class="panel-heading">
            添加用户
        </div>
        <div class="panel-body">
            <div class="row">
         
                <div class="col-lg-6 col-lg-offset-3">
                  
                 
                  @if (count($errors) > 0)
                        <div class="alert alert-danger">
                            <ul>
                                @foreach ($errors->all() as $error)
                                    <li>{{ $error }}</li>
                                @endforeach
                            </ul>
                        </div>
                    @endif
                


                    <form role="form"  action="{{url('/admin/user/insert')}}" method="post" enctype="multipart/form-data">
                 
                                <div class="form-group">
                                    <label>用户名</label>
                                    <input class="form-control" name="username"  type="text" value="{{old('username')}}"> 
                                </div>
                                <div class="form-group">
                                    <label>密码</label>
                                    <input class="form-control" name="password" type="password"  value="{{old('password')}}">
                                </div>
                             
                                <div class="form-group">
                                    <label>email</label>
                                    <input class="form-control" name="email" type="text"  value="{{old('email')}}">
                                </div>
                                <div class="form-group">
                                    <label>电话</label>
                                    <input class="form-control" name="phone" type="text"  value="{{old('phone')}}">
                                </div>
                                <div class="form-group">
                                    <label>头像</label>
                                    <!-- <input class="" type="file"  name="pic"  value="{{old('pic')}}"> -->
                                </div>
                                  <input class="" type="file"  name="pic"  value="{{old('pic')}}">
                                <div class="form-group">
                                    <label>昵称</label>
                                    <input class="form-control" name="nc" type="text"  value="{{old('nc')}}">
                                </div>
                              
                               
                             {{csrf_field()}}


                                <button type="submit" class="btn btn-primary btn-lg btn-block">添加提交</button>
                        
                      
                    </form>   
                </div>

                <!-- /.col-lg-6 (nested) -->
            </div>
            <!-- /.row (nested) -->
        </div>
        <!-- /.panel-body -->
    </div>
    <!-- /.panel -->
</div>
<!-- /.col-lg-12 -->
</div>

@endsection